<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       Cake.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html>
<html>
<head>
	<?php echo $this->Html->charset(); ?>
	<base href="<?php echo $base_url ?>" />
	<title>STUDENT NETWORK - <?php echo $title_for_layout ?></title>
	<meta name="google-site-verification" content="_uH_hzNkmrSZ9HCJaXZ3_jchaoexThAKdHkUP0G006A" />
	<?php
		echo $this->Html->meta('icon');
//		echo $this->Html->css('cake.generic');
		echo $this -> Html -> script(array('jquery', 'main', 'menu'));
		echo $this -> Html -> css(array('main', 'menu'));


		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>
</head>
<body>
	<div id="container">
		<!-- 
		<div id="header">
			<h1>STUDENT NETWORK</h1>
		</div>
		-->
		<div id="content">
			<?php
			echo $this->Html->image('logo.png', array('alt'=>'Logo', 'title'=>'SDU Student Network', 'style' => 'width: 70px; float: left; margin-top: -10px;', 'url' => $base_url));
			echo $this->Html->image('student_network.png', array('alt'=>'Logo', 'title'=>'SDU Student Network', 'style' => 'width: 418px; float: left; margin-top: -5px; margin-left: 20px;', 'url' => $base_url));
			?>
			<p><?php if( $loggedIn ) {
					echo '<p style="text-align: right;">Hey, '.$name.';';
					echo ' <a href="logout">Logout</a></p>';
			} ?></p>
			<div style="clear: left;"></div>
			<?php if( $loggedIn ) { ?>
			<div id="menu">
				<ul class="menu">
					<li><a href=""><span>Home</span></a></li>
					<li><a href="profile"><span>Profile</span></a></li>
					<li><a href="share"><span>File sharing</span></a></li>
					<li><a href="groups"><span>Groups</span></a></li>
					<?php if($isAdmin) { ?>
					<li><a href="users"><span>Administrate users</span></a></li>
					<li><a href="faculties"><span>Administrate faculties</span></a></li>
					<?php } ?>
				</ul>
			</div>
			<br />
			<?php } ?>
			<?php echo $this->Session->flash(); ?>

			<?php echo $this->fetch('content'); ?>

		</div>
	</div>
	<?php if($isAdmin) echo $this->element('sql_dump'); ?>
	<a href="http://apycom.com/" style="display: none;">Apycom jQuery Menus</a>
</body>
</html>
<?php echo '<!-- '.(microtime(true)-START).' -->';
